package DAO;

import java.util.Calendar;
import java.util.GregorianCalendar;

import classe.Adherent;
import classe.Employe;
import enumeration.EnumCategorieEmploye;

public class EmployesDao {

	private Employe[] employeDB = {
			new Employe("Marty", "Roger",  new GregorianCalendar(1988, Calendar.SEPTEMBER, 24).getTime(), "M", 12, "Rogerisbest", "Staff", "1", EnumCategorieEmploye.BIBLIOTHECAIRE),
			new Employe("Josianne", "Henri",  new GregorianCalendar(1988, Calendar.SEPTEMBER, 24).getTime(), "M/F", 13, "ILOVEROGER", "JAIMEMONTRAVAIL", "2", EnumCategorieEmploye.GESTIONNAIRE_DE_FONDS),
			new Employe("Riche", "Ritchy",  new GregorianCalendar(1988, Calendar.SEPTEMBER, 24).getTime(), "M", 14, "TANTPIS", "BOF", "3", EnumCategorieEmploye.RESPONSABLE),
			
			};

public Employe findBykey(int idKey)
{
		for (Employe employe:employeDB)
			if ((employe.getIdUtilisateur()==idKey)) return employe;
	return null;
}

}